<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 100px;
            height: 100px;
            /* 设置左浮动 left 右浮动right 不浮动none 文字不会被覆盖*/
            /* float: left; */
            /* float: right; */
            /* 逆序排列 */
        }
        .one{
            background-color: red;
            float: left;
        }
        .two{
            background-color: green;
            float: left;
        }
        .three{
            background-color: blue;
            /* 清除浮动元素的影响 clear*/
            clear: both;
        }
    </style>
</head>
<body>
    <div class="one">one</div>
    <div class="two">two</div>
    <div class="three">three</div>
    <!-- 三个div在一行显示 -->
</body>
</html>